<template>
  <el-table
    :data="tableData"
    header-align="center"
    class="customer-table zichanbiaoge"
    height="table"
  >
    <el-table-column align="center" prop="AssetsTypeName" label="资产"> </el-table-column>
    <el-table-column label="非经营表">
      <el-table-column align="center" prop="NonOperating_quantity" label="数量">
      </el-table-column>_unitOfMeasurement" label="单位">
      
      <el-table-column align="center" prop="NonOperating_unitPrice" label="单价(元)">
      </el-table-column>
      <el-table-column align="center" prop="NonOperating_brand" label="品牌">
      </el-table-column>
      <el-table-column align="center" prop="NonOperating_sizeAndModel" label="规格类型">
      </el-table-column>
      <el-table-column align="center"
        prop="NonOperating_presentValue"
        label="现今价值(元)"
      >
      </el-table-column>
      <el-table-column align="center"
        prop="NonOperating_estimatedYears"
        label="预购年限"
      >
      </el-table-column>
      <el-table-column align="center" prop="NonOperating_creationTime" label="构建时间">
        <template slot-scope="scope">
          <div>
            {{ timezhuanhuan1(scope.row.NonOperating_creationTime) }}
          </div>
        </template>
      </el-table-column>
      <el-table-column align="center" prop="NonOperating_source" label="产品来源">
      </el-table-column>
      <el-table-column align="center" prop="NonOperating_changes" label="变动情况">
      </el-table-column>
      <el-table-column align="center" prop="NonOperating_productStatus" label="产品状态">
      </el-table-column>
      <el-table-column align="center"
        prop="NonOperating_useDepartmentsAndUser"
        label="使用部门及使用者"
      >
      </el-table-column>
      <el-table-column align="center" prop="NonOperating_remarks" label="备注">
      </el-table-column>
    </el-table-column>
    <el-table-column label="经营表">
      <el-table-column align="center" prop="Operating_amount" label="合同金额">
      </el-table-column>
      <el-table-column align="center"
        prop="Operating_contractSigned"
        label="是否签订合同"
      >
      </el-table-column>
      <el-table-column align="center" prop="Operating_contractStatus" label="合同状态">
      </el-table-column>
      <el-table-column align="center"
        prop="Operating_durationOfCooperation"
        label="合同期限"
      >
      </el-table-column>
      <el-table-column align="center" prop="Operating_lessee" label="承租人">
      </el-table-column>
      <el-table-column align="center" prop="Operating_paymentStatus" label="支付状态">
      </el-table-column>
      <el-table-column align="center" prop="Operating_remarks" label="备注">
      </el-table-column>
    </el-table-column>
  </el-table>
</template>

<script>
var { timezhuanhuan1 } = require("../../js/global");
export default {
  props: ["biaogeqingqiucanshu", "fenyexinxi"],
  data() {
    return {
      tableData: [],
    };
  },
  methods: {
    gengxin() {
      //更新表格
      this.huoqushuju();
    },
    huoqushuju() {
      let params = new URLSearchParams();
      params.append("page", this.fenyexinxi.currentPage);
      params.append("size", this.fenyexinxi.pagesize);
      params.append("villageId", this.biaogeqingqiucanshu.selectcun);
      params.append("zhenId", this.biaogeqingqiucanshu.selectzhen);
      this.$axios
        .post("/fristpage/findAssetsTable", params)
        .then((response) => {
          this.tableData = response.data.data.records;
          // 设置数据total
          this.$emit("setfenyetotal", response.data.data.total);
        })
        .catch((err) => {
          console.log(err);
        });
    },
    timezhuanhuan1: timezhuanhuan1,
  },
  mounted() {},
};
</script>

<style lang="less" scoped>
.el-table {
  height: 100%;
}
</style>